package cn.cqk;





import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author: cai qiankun
 * @Date: 2025-04-23 23:21:50
 * @Description: 原始储蓄卡
 */


public class Card {

    private Logger logger = LoggerFactory.getLogger(CreditCard.class);

    public String withdraw(String orderId, BigDecimal amount){
        // 模拟体现成功
        logger.info("提现成功，单号:{},金额：{}",orderId,amount);
        return "000";
    }

    public String restore(String orderId, BigDecimal amount){
        // 模拟存钱成功
        logger.info("存钱成功，单号:{},金额：{}",orderId,amount);
        return "000";
    }


    /**
     * 交易查询流水
     * @return
     */
    public List<String> tradeFlow(){
        logger.info("交易流水查询成功！");
        List<String> tradeList = new ArrayList<>();
        tradeList.add("10001,100.00");
        tradeList.add("10002,100.00");
        tradeList.add("10003,100.00");
        tradeList.add("10004,100.00");
        tradeList.add("10005,100.00");
        return tradeList;
    }
}
